package cn.kgc.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 维修订单
 * </p>
 *
 * @author psq
 * @since 2021-08-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="MaintainOrder对象", description="维修订单")
public class MaintainOrder implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "商品序列号")
    @TableField("serialNo")
    private String serialNo;

    @ApiModelProperty(value = "订单编号")
    @TableField("orderNo")
    private String orderNo;

    @ApiModelProperty(value = "用户id")
    @TableField("userId")
    private Long userId;

    @ApiModelProperty(value = "型号id")
    @TableField("modelId")
    private Long modelId;

    @ApiModelProperty(value = "评估信息id")
    @TableField("evaluateId")
    private Long evaluateId;

    @ApiModelProperty(value = "订金金额")
    private BigDecimal subscription;

    @ApiModelProperty(value = "实际交易金额")
    private BigDecimal price;

    @ApiModelProperty(value = "订单状态（1:预约下单,2:支付定金,9:用户取消,10:完成）")
    private Integer status;

    @ApiModelProperty(value = "是否评论")
    @TableField("isComment")
    private Integer isComment;

    @ApiModelProperty(value = "取消订单的原因")
    @TableField("cancelReason")
    private String cancelReason;

    @ApiModelProperty(value = "创建人")
    @TableField("createdUserId")
    private Long createdUserId;

    @ApiModelProperty(value = "修改人")
    @TableField("updatedUserId")
    private Long updatedUserId;

    @ApiModelProperty(value = "创建时间")
      @TableField(value = "creatdTime", fill = FieldFill.INSERT)
    private Date creatdTime;

    @ApiModelProperty(value = "修改时间")
      @TableField(value = "updatedTime", fill = FieldFill.INSERT_UPDATE)
    private Date updatedTime;

    @ApiModelProperty(value = "是否删除(0:否,1:是)")
    @TableField("isDelete")
    private Integer isDelete;


}
